package com.vhall.component.service.audit;

import com.baomidou.mybatisplus.extension.service.IService;
import com.vhall.component.entity.audit.dto.AuditRecordListDTO;
import com.vhall.component.entity.audit.dto.CreateAuditRecordDTO;
import com.vhall.component.entity.audit.entity.AuditRecordEntity;
import com.vhall.component.entity.audit.vo.AuditRecordResponseVO;

import java.util.List;

/**
* @author xing.wang
* @description 针对表【audit_record(审核记录表)】的数据库操作Service
* @createDate 2023-08-08 15:27:19
*/
public interface AuditRecordService extends IService<AuditRecordEntity> {
    /**
     * 获取业务数据的审核记录表
     * @param dto
     * @return
     */
    List<AuditRecordResponseVO> getAuditRecordList(AuditRecordListDTO dto);

    /**
     * 创建业务审核记录数据(通用)
     * @param dto
     * @return
     */
    Boolean createAuditRecord(CreateAuditRecordDTO dto);

    /**
     * 查询审核信息
     * @param auditTableRecordId
     * @param auditTable
     * @return
     */
    AuditRecordResponseVO getAuditRecord(String auditTableRecordId, String auditTable,Integer auditRounds);
}
